package com.woniuxy.amusementparkos.controller.wyh;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.woniuxy.amusementparkos.entity.wyh.WristStrap_msg;
import com.woniuxy.amusementparkos.service.wyh.WristStrap_RepositoryService;

@Controller
public class WristStrap_RepositoryController {
	@Autowired
	WristStrap_RepositoryService wristStrap_RepositoryService;
	
	@ResponseBody
	@RequestMapping("/getCurrentMsg")
	public Object getCurrentMsg(String wriststrp_id) {
		WristStrap_msg bywriststrp_id = wristStrap_RepositoryService.getBywriststrp_id(wriststrp_id);
		
		System.out.println(bywriststrp_id);
		//如果没查询到相关信息。 该腕带非正常使用  
		if(bywriststrp_id==null) {
			return null;
		}
		//返回信息对象
		return bywriststrp_id;

	}

}
